// pages/carQuerySuccess/carQuerySuccess.js
Page({
    data: {
        indexList: []
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        var indexList = JSON.parse(unescape(options.indexList));
        this.setData({
            indexList: indexList
        });
    },

    goBack: function() {
        wx.navigateBack();
    },
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function(ops) {
        if (ops.from === 'button') {
            // 来自页面内转发按钮
            console.log(ops.target)
        }
        return {
            title: '我中签啦,快来查查你中签了吗',
            path: '/pages/carQuery/carQuery',
            success: function(res) {
                // 转发成功
                console.log("转发成功:" + JSON.stringify(res));
            },
            fail: function(res) {
                // 转发失败
                console.log("转发失败:" + JSON.stringify(res));
            }
        }
    }
})